package com._520it._06_many2many.mapper;


import com._520it._06_many2many.domain.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {

    void save(Teacher teacher);
    void saveRelation(@Param("teaId") Long teaId, @Param("stuId") long stuId);


    void deleteRealtion(Long teaId);
    void delete(Long teaId);

    //额外SQL
    Teacher get1(Long teaId);

    //内连接
    Teacher get2(Long teaId);

    List<Teacher> list();



}
